<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/3/25
 * Time: 16:16
 * name:新增试读记录
 * url:/erpOrder/add_trial_reading_record
 */

//获取参数
$otrr_osid       = $route->bodyParams['otrr_osid'];               //试读学员id
$otrr_ocid       = $route->bodyParams['otrr_ocid'];               //试读课程id
$otrr_teacher_id = $route->bodyParams['otrr_teacher_id'];         //老师id
$otrr_is_used    = $route->bodyParams['otrr_is_used'];            //是否已使用 0-否 1-是


//写入数组
$insertArr = [
    'otrr_osid'        => $otrr_osid,
    'otrr_ocid'        => $otrr_ocid,
    'otrr_teacher_id'  => $otrr_teacher_id,
    'otrr_is_used'     => $otrr_is_used,
    'otrr_create_time' => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_trial_reading_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );